package org.example.zerenlian.chain.fliter;

import org.example.zerenlian.chain.abstr.ClothsProductAbsService;
import org.example.zerenlian.chain.dto.ClothsDTO;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author czj
 * @date 2024/12/7
 * @description
 */
@Service
public class ClothsSizeFilter implements ClothsProductAbsService {
    @Override
    public void process(ClothsDTO param) {
        List<String> list = new ArrayList<>();
        list.add("s");
        list.add("m");
        list.add("l");
        if (!list.contains(param.getSize())) {
            System.out.println("尺寸非法");
        }
    }
}
